﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	request.setAttribute("basePath", basePath);
%>
<!DOCTYPE html>
<html lang="zh">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
	<title>用户注册</title>
	<base href="${basePath}/static/admin/">
	<link rel="icon" href="favicon.ico" type="image/ico">
	<meta name="keywords" content="后台模板,后台管理系统,HTML模板">
	<meta name="description" content="基于Bootstrap的后台管理系统模板">
	<meta name="author" content="www.bootstrapmb.com">
	<link href="css/bootstrap.min.css" rel="stylesheet">
	<link href="css/fonts.css" rel="stylesheet">
	<!--标签插件-->
	<link rel="stylesheet" href="js/jquery-tags-input/jquery.tagsinput.min.css">
	<link href="css/style.css" rel="stylesheet">
</head>

<body>
<!--页面主要内容-->
<main class="ftdms-layout-content">

	<div class="container-fluid" style="height: 1200px;">

		<div class="row" style="margin-top:15px;">
			<div class="col-lg-12">
				<div class="card">
					<div class="card-body">

						<form action="../../admin/userupdate.action" method="post" class="row">
							<div class="form-group col-md-12">
								<label for="title">用户编号</label>
								<input type="text" class="form-control" id="uId" name="uId" value="${user.uId}" placeholder="${uId}" />
							</div>
							<div class="form-group col-md-12">
								<label for="title">用户名称</label>
								<input type="text" class="form-control" id="uName" name="uName" value="${user.uName}" placeholder="${uName}" />
							</div>
							<div class="form-group col-md-12">
								<label for="title">用户年龄</label>
								<input type="number" class="form-control" id="uAge" name="uAge" value="${user.uAge}" placeholder="请输入年龄" />
							</div>
							<div class="form-group col-md-12">
								<label for="title">用户密码</label>
								<input type="password" class="form-control" id="uPass" name="uPass" value="${user.uPass}" placeholder="请输入密码" />
							</div>

							<div class="form-group col-md-12">
								<label for="title">用户电话</label>
								<input type="text" class="form-control" id="uTel" name="uTel" value="${user.uTel}" placeholder="请输入电话" />
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">性别：</label>
								<c:if test="${user.uSex=='男'}">
									<input name="ssex" class="" type="radio" checked="checked" value="男">男
								</c:if>
								<c:if test="${user.uSex=='女'}">
									<input name="ssex" class="" type="radio" checked="checked" value="女">女
								</c:if>

							</div>

							<%--<div class="form-group col-md-12">
								<label for="title">用户头像</label>
								<input type="text" class="form-control" id="userImg" name="userImg" value="${user.userImg}" placeholder="请上传头像" />
							</div>--%>

							<div class="form-group col-md-12">
								<label for="title">用户地址</label>
								<input type="text" class="form-control" id="uAdress" name="uAdress" value="${user.uAdress}" placeholder="请输入地址" />
							</div>
							<div class="form-group col-md-12">
								<label for="title">用户角色</label>
								<select class="form-control" name="rId">
									<c:forEach var="role" items="${rolelist}">
										<option value="${role.rId}">${role.rName}</option>
									</c:forEach>
								</select>
							</div>
							<div class="form-group col-md-12">
								<button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
								<button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
							</div>
						</form>

					</div>
				</div>
			</div>

		</div>

	</div>

</main>
<!--End 页面主要内容-->
</div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="statics/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
</body>

</html>